public class BayesianAgent extends Agent
| Modifier and Type | Field and Description |
|---|---|
protected OpponentModel |
fOpponentModel |
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace| Constructor and Description |
|---|
BayesianAgent() |
| Modifier and Type | Method and Description |
|---|---|
Action |
chooseAction()
this function is called after ReceiveMessage,
with an Offer-action.
|
protected void |
dumpDistancesToLog(int pRound) |
java.lang.String |
getName() |
static java.lang.String |
getVersion() |
void |
init()
This method is called by the protocol every time before starting a new
session after the internalInit method is called.
|
protected boolean |
isAcceptableAfter(double offeredutil,
Bid lnextBid)
Returns whether the offered utility is acceptable after computing a counter offer.
|
protected boolean |
isAcceptableBefore(double offeredutil)
Returns whether the offered utility is acceptable before computing a counter offer.
|
protected void |
prepareOpponentModel() |
void |
ReceiveMessage(Action opponentAction)
informs you which action the opponent did
|
endSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleepprotected OpponentModel fOpponentModel
public static java.lang.String getVersion()
public java.lang.String getName()
public void init()
Agentprotected void prepareOpponentModel()
public void ReceiveMessage(Action opponentAction)
AgentReceiveMessage in class Agentpublic Action chooseAction()
AgentchooseAction in class Agentprotected boolean isAcceptableAfter(double offeredutil,
Bid lnextBid)
throws java.lang.Exception
java.lang.Exceptionprotected boolean isAcceptableBefore(double offeredutil)
throws java.lang.Exception
java.lang.Exceptionprotected void dumpDistancesToLog(int pRound)